package menuTree;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class Node implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer parentId;
	private List<Node> child;
	private String name;
	private Integer id;
	private boolean toDelete;
	
	
	public Node(){
		child = new ArrayList<Node>();
	}
	public Node(Integer id , Integer parentId , String name){
		child = new ArrayList<Node>();
		this.name=name;
		this.id=id;
		this.parentId=parentId;
	}

	public List<Node> getChild() {
		return child;
	}

	public void setChild(List<Node> child) {
		this.child = child;
	}

	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public Integer getId() {
		return id;
	}


	public void setId(Integer id) {
		this.id = id;
	}


	public boolean isToDelete() {
		return toDelete;
	}


	public void setToDelete(boolean toDelete) {
		this.toDelete = toDelete;
	}


	public Integer getParentId() {
		return parentId;
	}


	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}
	
	
}
